package cn.xjt.controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 内容：
 *
 * @author
 * @date 2020/9/21-13:03
 */
public class ServletController implements Controller {
	@Override
	public ModelAndView handleRequest(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {
		ModelAndView mv = new ModelAndView();

		mv.addObject("msg", "HelloSpring_MVC");

		mv.setViewName("hello");

		return mv;
	}
}
